#ifndef __CCGRID_H__
#define __CCGRID_H__

#include "cocos2d.h"

enum GridType
{
	NONE,
	BLUE,
	GREEN,
	PURPLE,
	RED,
	YELLOW
};

#define GRID_SIZE 66

class CGrid : public cocos2d::CCSprite
{
public:
	CGrid();
	~CGrid();

	inline GridType getType(){ return _type; }
	void setType(GridType type);

	CREATE_FUNC(CGrid);

	CGrid* top;
	CGrid* left;
	CGrid* right;
	CGrid* bottom;

	bool isSelected;
	bool hasCheckedDrop;
	unsigned char row;
	unsigned char col;

private:
	GridType _type;
};

#endif